/*
 * Copyright (C) 2014 www.htwater.net
 * 
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package cn.miao.photoprinter.entity;

import java.io.Serializable;
import java.util.HashMap;
import java.util.Map;

/**
 * 
 * @author nealmiao
 * @version
 * @since v 1.0
 * @Date 2014年12月1日 上午10:55:12
 */
public class ShoppingRecord implements Serializable {

	/**
	 * serialVersionUID:TODO
	 */
	private static final long serialVersionUID = 791988780727371873L;
	private int id;
	private String shop;
	private String photoSize;
	private String photoBrand;
	private String photoMatieral;
	private String others;
	private int photocnt;
	private String photos;
	private String address;

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public String getAddress() {
		return address;
	}

	public void setAddress(String address) {
		this.address = address;
	}

	public String getShop() {
		return shop;
	}

	public void setShop(String shop) {
		this.shop = shop;
	}

	public String getPhotoSize() {
		return photoSize;
	}

	public void setPhotoSize(String photoSize) {
		this.photoSize = photoSize;
	}

	public String getPhotoBrand() {
		return photoBrand;
	}

	public void setPhotoBrand(String photoBrand) {
		this.photoBrand = photoBrand;
	}

	public String getPhotoMatieral() {
		return photoMatieral;
	}

	public void setPhotoMatieral(String photoMatieral) {
		this.photoMatieral = photoMatieral;
	}

	public String getPhotos() {
		return photos;
	}

	public void setPhotos(String photos) {
		this.photos = photos;
	}

	public String getOthers() {
		return others;
	}

	public void setOthers(String others) {
		this.others = others;
	}

	public int getPhotocnt() {
		return photocnt;
	}

	public void setPhotocnt(int photocnt) {
		this.photocnt = photocnt;
	}

	public Map<String, String> toMap() {
		Map<String, String> rtMap = new HashMap<String, String>();
		rtMap.put("id", "" + id);
		rtMap.put("shop", shop);
		rtMap.put("photoSize", photoSize);
		rtMap.put("photoBrand", photoBrand);
		rtMap.put("photoMatieral", photoMatieral);
		if (null != others)
			rtMap.put("others", others);
		rtMap.put("photocnt", "" + photocnt);
		rtMap.put("photos", photos);
		if (null != address)
			rtMap.put("address", address);
		return rtMap;
	}
}
